<H3>USER LIST - <%- recordCount %></H3>
<table border="1" cellpadding="7" cellspacing="7">
    <tr>
        <th width="50px">Id</th>
        <th>Firstname</th>
        <th>Middlename</th>
        <th>Lastname</th>
        <th>Username</th>
        <th width="120px">Action</th>
    </tr>                               
    <% if(records.length){ 
     for(var i = 0;i < records.length;i++) { %>                 
    <tr>
        <td><%=records[i].id%></td>
        <td><%=records[i].firstname%></td>
        <td><%=records[i].middlename%></td>
        <td><%=records[i].lastname%></td>
        <td><%=records[i].username%></td>
        <td>
            <a class="a-inside edit" href="../<%= controller %>/edit/<%=records[i].id%>">Edit</a>                       
            <a class="a-inside delete" href="../<%= controller %>/delete/<%=records[i].id%>">Delete</a>                       
        </td>
    </tr>

<% }
 }else{ %>
     <tr>
        <td colspan="6">No user</td>
     </tr>
<% } %>
   <tr>
    	<td colspan="6">	<% include ../the_net/includes/pagination %>  </td>
    </tr>                                    
</table>